﻿<!DOCTYPE html>
<html style="height: 100%">
<head>
    <meta charset="utf-8">
    <title>详情</title>
    <meta name="keywords" content="" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <script src="/assets/js/jquery-1.8.2.min.js"></script>
    <style>
        .span {
            display: inline-block;
            border: solid 1px #ccc;
            width: 80px;
            height: 30px;
            line-height: 30px;
            padding-right: 10px;
            color: #000;
            cursor: pointer;
        }
        .cur {
            background-color: #808080;
            color: #fff;
        }
    </style>
</head>
<body style="height: 100%; margin:auto;">
    <div style="width:100%;min-height:600px;font-size:12px;text-align:center;">
      <!--  <div id="divperiod" style="width:100%;padding-top:15px;display:inline-block;height:30px;text-align:center">
            <span class="span" v="1M">分时</span>
            <span class="span" v="5M">5分</span>
            <span class="span" v="15M">15分</span>
            <span class="span" v="1H">时</span>
            <span class="span cur" v="D">日</span>
            <span class="span" v="W">周</span>
        </div>-->
        <iframe id="ifmMain" style="width:100%;min-height:500px;border:none;" frameborder="0" scrolling="no"></iframe>
    </div>
    <script type="text/javascript">
        var _targets = "/index/chart/charts_query";
        //自行填写默认值
        var _symbol = '{$symbol}';
        var _period = '{$period}';
        $(function () {
            document.getElementById("ifmMain").src = _targets + "?symbol=" + _symbol + "&p=" + _period + "&_t=" + (new Date()).getTime();
            $("#divperiod>span").click(function (e) {
                $(this).addClass("cur");
                $(this).siblings().removeClass("cur");
                _period = $(this).attr("v");
                document.getElementById("ifmMain").src = _targets + "?symbol=" + _symbol + "&p=" + _period + "&_t=" + (new Date()).getTime();
            });

        });
    </script>
</body>
</html>